package com.lyun.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lyun.pojo.SmallVideo;
import com.lyun.vo.SmallVideosVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SmallVideoMapper extends BaseMapper<SmallVideo> {
//
//    @Select("select s.id, s.user_id, u.header, u.nickname, s.video_thumbnail,\n" +
//            "s.video_file, s.signature\n" +
//            "from tbl_small_video s left JOIN tbl_user u on s.user_id = u.id")
//    @Results({
//            @Result(property = "cover", column = "video_thumbnail"),
//            @Result(property = "avatar", column = "header"),
//            @Result(property = "videoUrl", column = "video_file")
//    })
//    List<SmallVideo> selectAllSmallVideo();

}
